#ifndef CROSSROAD_H
#define CROSSROAD_H

#include "Coord.h"
#include "InOut.h"
#include "Vehicle.h"

using namespace std;

#include<vector>

class CrossRoad {
    private:
        int id;
        Coord * position;


    public:
        vector<InOut*> listIn;
        vector<InOut*> listOut;
		vector<Vehicle*> listVehicle;

        CrossRoad();
        CrossRoad (int,float,float);

        int getId() const;
        void setId(int id);
        Coord* getPosition() const;
        void setPosition(Coord * position);
		void addVehicle (Vehicle* v);
        void eraseVehicle (Vehicle* v);
		vector<Vehicle*> getListVehicle();
        void addIn (InOut * in);
        void eraseIn (InOut * in);
        void addOut (InOut * out);
        void eraseOut (InOut * out);
        InOut* getIn(int id);
		vector<InOut*> getListIn();
        InOut* getOut(int id);
		vector<InOut*> getListOut();
        void toString();
};

#endif

